package com.example.take_out_admin.api;

import com.example.take_out_admin.service.EmployeeService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:none
 * @Author:yyyyys、
 * @Date:2024/7/7 18:11
 * @Version:1.0
 **/
@Slf4j
@RestController
@RequestMapping("/employeeApi")
public class EmployeeApi {
    @Resource
    private EmployeeService employeeService;

    @GetMapping("{token}")
    private boolean vaildateToken(String token) {
        return employeeService.validateToken(token);
    }

}
